<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="myauctioneer.dto.User"
	import="myauctioneer.dto.RatingDetail" import="myauctioneer.dto.Rating"
	import="java.util.*"%>
<%@ include file="header.jsp"%>
<div id="content">
	<h1>
		Ratings for User
		<%=request.getAttribute("userId")%>
		of type "<%=request.getAttribute("type")%>"
	</h1>
	<%
		ArrayList<Rating> rAL = (ArrayList<Rating>) request
				.getAttribute("rAL");
		ArrayList<RatingDetail> rDAL = (ArrayList<RatingDetail>) request
				.getAttribute("rDAL");

		for (int i=0; i < rAL.size(); i++) {
			out.println("<h1>"
					+ rDAL.get(i).getLabeling()
					+ "</h1><p>"
					+ rDAL.get(i).getNote()
					+ "</p><p class=\"entry_bottom\"><span>created by User "
					+ rAL.get(i).getCustomerId() + " at " + rDAL.get(i).getTime()
					+ "</span></p>");
		}
	%>
	<p>
		<a
			href="<%=App.getBaseUrl()%>/user/profile?id=<%=request.getAttribute("userId")%>"
			class="backlink">&larr; back to profile</a>
	</p>
</div>
<%@ include file="footer.jsp"%>